import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/dark/css-vars.css'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

// import './style.css'
import App from './App.vue'
import Router from "./router/index";
import Pinia from "./store/index";
import directive from "./directive/index";

const app = createApp(App)
app.use(Router);
app.use(Pinia);
directive(app)
app.use(ElementPlus, {
  locale: zhCn,
}) //中文
// 注册自定义插件对象，注册整个项目全局组件
import gloalComponent from "@/components/index.ts";
app.use(gloalComponent);

// 引入全局模板样式
import '@/styles/index.scss'
// svg插件需要的配置代码
import 'virtual:svg-icons-register'
// 路由鉴权
import './permisstion';
app.mount('#app')
